<?php

use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('users', function($table)
	    {
	        $table->increments('id');
	        $table->string('username');
	        $table->string('email');
	        $table->string('password');
			$table->string('password_temp');
			$table->string('code');
	        $table->integer('active');

            
            // 1 normal , 2 locked out ,3 blocked 
	        $table->integer('status');

	        // 1 customer , 2 provider, 3 admin 	
	        $table->integer('role');
	        
	        $table->timestamps();
	    });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		 Schema::drop('user');
	}

}